package com.jjty.dataGenerator.sxhcampus;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author: huangyulong
 * @createTime: 2023-11-08 16:51
 * @Description:
 */
@Component
@ConfigurationProperties(prefix = "sx-hcampus")
public class SxHCampusConfig {

    public static String appid;

    public static String appkey;

    public static String plate_code;

    public static String phone;

    public static String agentid;

    public static String uri;

    public static String sendActiveDataUrl;

    @PostConstruct
    public static void init() {
        sendActiveDataUrl = uri+"/hardware/card/es_active_data";
    }

    public void setAppid(String appid) {
        SxHCampusConfig.appid = appid;
    }

    public void setAppkey(String appkey) {
        SxHCampusConfig.appkey = appkey;
    }

    public void setPlate_code(String plate_code) {
        SxHCampusConfig.plate_code = plate_code;
    }

    public void setPhone(String phone) {
        SxHCampusConfig.phone = phone;
    }

    public void setAgentid(String agentid) {
        SxHCampusConfig.agentid = agentid;
    }

    public void setUri(String uri) {
        SxHCampusConfig.uri = uri;
    }
}
